@extends('develop.layoutEdit')

@section('title')

    <li class="cur">
        <span>查看样式库 </span>
    </li>

@endsection

@section('content')

@foreach($style as $k=>$item)
    @if($k == 0)
    <div class="form-group">
        <label class="col-sm-3 control-label"><span class="red mr5">*&nbsp;</span>默认样式库名称：</label>
        <div class="col-sm-3">
            <input type="text" class="form-control"  name="style_name"  placeholder="请输入默认样式库名称" readonly value="{{ $item['style_name'] or ''}}">
        </div>
    </div>

    <div class="form-group ">
        <label class="col-sm-3 control-label"><span class="red pr5">*&nbsp;</span>默认样式库CSS：</label>
        <div class="col-sm-5">
            <textarea name="style_css" class="form-control"  rows="10" readonly placeholder="请输入样式库css代码">{{ $item['style_css'] or ''}}</textarea>
        </div>
    </div>
    @elseif($k >=1)
    <div class="form-group">
        <label class="col-sm-3 control-label"><span class="red mr5">*&nbsp;</span>样式库名称：</label>
        <div class="col-sm-3">
            <input type="text" class="form-control"  name="style_name"  placeholder="请输入默认样式库名称" readonly value="{{ $item['style_name'] or ''}}">
        </div>
    </div>

    <div class="form-group ">
        <label class="col-sm-3 control-label"><span class="red pr5">*&nbsp;</span>样式库CSS：</label>
        <div class="col-sm-5">
            <textarea name="style_css" class="form-control"  rows="10" readonly placeholder="请输入样式库css代码">{{ $item['style_css'] or ''}}</textarea>
        </div>
    </div>
    @endif
@endforeach

@endsection
